<script setup lang="ts">
import { Button as vanButton } from 'vant'
import { useRouter } from 'vue-router'
const router = useRouter()
const fn = () => {
  console.log(router)
  router.push('/?id=1')
}
</script>

<template>
  <div>
    <h1>palyground</h1>
    <van-button @click="fn">按钮</van-button>
  </div>
</template>

<style scoped lang="scss"></style>
